﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OopDemo
{
    /// <summary>
    /// 三角形
    /// </summary>
    public class Triangle : IShape
    {
        public int Length { get; set; }

        public Triangle()
        {
            Length = 10;
        }
        public void Draw()
        {
            DrawSelf();
        }

        public virtual void DrawSelf()
        {
            Console.WriteLine("三角形");
        }
    }
}
